/**
 * a9-progress 进度条组件
 * type: 默认是条形，type='circle'是环形，其他参考vant文档
 */
export default {
  name: 'a9-progress',
  inheritAttrs: false,
  render (h) {
    return h(`van-${this.$attrs.type || 'progress'}`, {
      props: this.$attrs,
      scopedSlots: this.$scopedSlots,
      on: {
        ...this.$listeners,
        input: (e) => this.$attrs.type === 'circle' && this.$emit('input', e)
      },
      domProps: {
        value: this.value
      }
    })
  }
}
